<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./Tab.css">
</head>
<body>
    <fieldset id="box">
        <legend>tab切换动态组件</legend>
        <div class="tab-button">
            <ul>
                <li class="current1">home</li>
                <li>email</li>
                <li>mine</li>
                <li>charge</li>
            </ul>
        </div>
        <div class="tab-context">
            <div class="item current2">主页</div>
            <div class="item">邮箱</div>
            <div class="item">个人中心</div>
            <div class="item">充值中心</div>
        </div>
    </fieldset>
</body>
</html>
<script src="./tab.js"></script>